Linux webm002.cluster126.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
/
home
/
ariannadhf
/
www
/
wp-content
/
plugins
/
wp-postratings
/
includes
/
/home/ariannadhf/www/wp-content/plugins/wp-postratings/includes/postratings-shortcodes.php
<?php /** * WP-PostRatings Sortcodes. * * @package WordPress * @subpackage WP-PostRatings Plugin */ /** * Security check * Prevent direct access to the file. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ### Function: Short Code For Inserting Ratings Into Posts function ratings_shortcode( $atts ) { $attributes = shortcode_atts( array( 'id' => 0, 'results' => false ), $atts ); if( ! is_feed() && ! ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) ) { $id = (int)$attributes['id']; if( $attributes['results'] ) { return the_ratings_results( $id ); } return the_ratings( 'span', $id, false ); } return esc_html__( 'Note: There is a rating embedded within this post, please visit this post to rate it.', 'wp-postratings' ); } add_shortcode( 'ratings', 'ratings_shortcode' );